package com.xiaoma.guicedemo.module.servlet;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;

/**
 * @author maj
 * @ClassName MyGuiceServletConfig
 * @Description
 * @date 2020-05-03 9:58
 * 参考：https://www.cnblogs.com/huzi007/p/5802022.html
 */
public class MyGuiceServletConfig extends GuiceServletContextListener {

    @Override
    protected Injector getInjector() {
        return Guice.createInjector(new MyServletModule());
    }
}
